package com.wnnight.wys.service.notice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wnnight.wys.entity.PageBean;
import com.wnnight.wys.entity.notice.Notice;
import com.wnnight.wys.vo.NoticeVo;

import java.util.Date;
import java.util.List;

/**
 * @ClassName: NoticeService
 * @Description: //TODO
 * @author: xjh
 * @date: 2022/8/28-21:19
 * @version: v1.0
 */
public interface NoticeService extends IService<Notice> {
    PageBean<List<Notice>> getByTitle(String title, int pageNum, int pageSize);
    PageBean<List<Notice>> getByTypeId(int id, int pageNum, int pageSize);
    PageBean<List<Notice>> getByStartAndEndDate(Date startDate,Date endDate,int pageNum, int pageSize);
    PageBean<List<Notice>> getByCondition(Notice notice,int pageNum, int pageSize);
    PageBean<List<Notice>> getByCondition2(NoticeVo noticeVo, int pageNum, int pageSize);
    List<Notice> getAll();
    Notice getById1(int id);
    void add(Notice notice);
    void update(Notice notice);
    void delete(int id);
    void reset(int id);

}
